FROM java:8
MAINTAINER YUZHIYONG
VOLUME /tmp
ENV TZ=Asia/Shanghai
RUN echo $TZ > /etc/timezone
COPY ./target/jenkins-1.0-SNAPSHOT.jar /var/app.jar
WORKDIR /var
RUN chmod 755 /var/app.jar
EXPOSE 9998
ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "/var/app.jar"]
